package data;

/**
 *
 * @author groep 11
 * @date 2007-2008
 */
public class Soldier {
    private int soldierId;
    private String type;
    private int level;
    private int amount;
    private int villageId;
    private int attackStrength;
    private int defenseStrength;
    private int speed;

    
    /**
     * Constructor with all parameters
     * @param soldierId
     * @param type
     * @param level
     * @param amount
     * @param attackStrength
     * @param defenseStrength
     * @param speed
     * @param villageId
     */
    public Soldier(int soldierId, String type, int level, int amount, int attackStrength,
            int defenseStrength, int speed, int villageId) {
        
        this.setSoldierId(soldierId);
        this.setType(type);
        this.setLevel(level);
        this.setAmount(amount);
        this.setAttackStrength(attackStrength);
        this.setDefenseStrength(defenseStrength);
        this.setSpeed(speed);
        this.setVillageId(villageId);
    }
    
    
    /** 
     * Constructor with all parameters but soldierId.
     * By default soldierId is set to 0
     * @param type
     * @param level
     * @param amount
     * @param attackStrength
     * @param defenseStrength
     * @param speed
     * @param villageId
     */
    public Soldier(String type, int level, int aantal, int attackStrength,
            int defenceStrength, int speed, int villageId) {
        
        this(0, type, level, aantal, attackStrength, defenceStrength, speed, villageId);
    }
    
    
    public int getSoldierId() {
        return soldierId;
    }

    public void setSoldierId(int soldierId) {
        this.soldierId = soldierId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getVillageId() {
        return villageId;
    }

    public void setVillageId(int villageId) {
        this.villageId = villageId;
    }

    public int getAttackStrength() {
        return attackStrength;
    }

    public void setAttackStrength(int attackStrength) {
        this.attackStrength = attackStrength;
    }

    public int getDefenseStrength() {
        return defenseStrength;
    }

    public void setDefenseStrength(int defenseStrength) {
        this.defenseStrength = defenseStrength;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }


}
